package com.cl.pattern.facade;

/**
 * 工长
 *
 * 门面类
 *
 * @Author Small
 * @Date 2020/7/10 17:27
 * @Version 1.0
 **/
public class Foreman {

    // 门面类拥有子系统的所有引用

    private Hydropower hydropower = new Hydropower();
    private Mason mason = new Mason();
    private Carpentry carpentry = new Carpentry();

    /**
     * 门面方法
     *
     * 门面
     */
    public void build(){
        hydropower.work();
        mason.work();
        carpentry.work();
    }
}
